package com.hdy.net.order;

import com.hdy.net.order.bean.BasicDataResponse;
import com.hdy.net.order.bean.TablesInfoResponse;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

public interface PosApiService {

    @POST("{url}")
    Observable<TablesInfoResponse> login(
            @Path("url") String url,
            @Body RequestBody jsonStr);

    @POST("{url}")
    Observable<BasicDataResponse> getBasicData(
            @Path("url") String url,
            @Body RequestBody jsonStr);

    @POST("{url}")
    Observable<BasicDataResponse> order(
            @Path("url") String url,
            @Body RequestBody jsonStr);

    @POST("{url}")
    Observable<BasicDataResponse> getOrderInfo(
            @Path("url") String url,
            @Body RequestBody jsonStr);

}
